<h1>Novo tpl</h1>

<%= error_messages_for :tpl %>

<% form_for(@tpl) do |f| %>
  <p>
    <b>Config conteudo</b><br />
    <%= f.select(:config_conteudo_id,ConfigConteudo.find(:all).collect{|cc| [cc.nome,cc.id]}) %>
  </p>

  <p>
    <b>Nome</b><br />
    <%= f.text_field :nome %>
  </p>

  <p>
    <b>Texto</b><br />
    <%= f.text_area :texto %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', tpls_path %>
